package com.ibeeking.found.upms.g.rest.service;

import com.ibeeking.found.upms.service.common.bo.PermissionResourceBO;
import com.ibeeking.found.upms.service.common.param.PermissionResourceParam;
import com.ibeeking.found.upms.service.common.param.ResourcePermissionParam;

import java.util.List;

/**
 * @project: IGmcPermissionResourceService
 * @description: 角色权限接口
 * @Author ibeeking
 * @create: 2020-12-05 15:19:26
 **/
public interface IGmcPermissionResourceService {

    /**
     * 查询权限资源关系通过权限ID
     *
     * @param permissionId
     * @return
     */
    List<PermissionResourceBO> queryPermissionResourceByPermissionId(Long permissionId);

    /**
     * 查询权限资源关系通过资源ID
     *
     * @param resourceId
     * @return
     */
    List<PermissionResourceBO> queryPermissionResourceByResourceId(Long resourceId);

    /**
     * 通过权限ID修改权限资源关系
     *
     * @param permissionResourceParam
     * @return
     */
    Boolean modifyPermissionResourceByPermissionId(PermissionResourceParam permissionResourceParam);

    /**
     * 通过资源ID修改权限资源关系
     *
     * @param resourcePermissionParam
     * @return
     */
    Boolean modifyPermissionResourceByResourceId(ResourcePermissionParam resourcePermissionParam);

    /**
     * 通过
     * @param permissionIds
     * @return
     */
    List<PermissionResourceBO> queryPermissionResourceByPermissionIds(List<Long> permissionIds);
}
